package com.game.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.game.modal.Message;

@Mapper
public interface MessageMapper {
	@Insert("INSERT INTO msg (type, msg, room_id,send_uid, send_name, detail, time)\n"
			+ "VALUES\n"
			+ "(#{type}, #{msg},#{roomId}, #{sendUid}, #{sendName}, #{detail}, now())")
	int insert(Message message);
}
